package com.company;

public class Preson {
    public void pet1(Cat cat){  //使用多态
        cat.eat();
    }
    public void pet2(Dog dog){
        dog.play();
    }
}
